package com.alex.spring.annotation;/**
 * Created by Administrator on 2018\10\5 0005.
 */

import com.alex.spring.springBase.SpellChecker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Administrator
 * @date 2018\10\5 0005
 */
@Configuration
public class TextEditorConfig {
    @Bean
    public TextEditor textEditor(){
        return new TextEditor( spellChecker() );
    }
    @Bean
    public SpellChecker spellChecker(){
        return new SpellChecker( );
    }
}
